GtkWidget.set_size_request() enforces a minimum size, while
GtkWidget.set_default_size() simply sets the default size.
The docs of set_size_request() say "In most cases,
gtk_window_set_default_size() is a better choice for toplevel windows", and
in our case it doesn't seem necessary to prohibit the window from having a
smaller size, so switch to using the default_width and default_height
properties.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3307>
super._init({
application,
title: _('Hotspot Login'),
+ default_width: 600,
+ default_height: 450,
});
const headerbar = new Gtk.HeaderBar();
this._syncUri();
this.set_child(this._webView);
- this.set_size_request(600, 450);
this.maximize();
this.present_with_time(timestamp);